package com.time.auth.common.enums;

import lombok.Getter;

/**
 * 权限展示状态枚举类
 *
 * @author: HuangQi
 * @date: Created in 11:52 2025/9/24
 * @description: 权限展示状态枚举类
 */
@Getter
public enum AuthPermissionShowEnum {

    SHOW(0, "展示"),
    UN_SHOW(1, "隐藏");

    public int code;

    public String desc;

    AuthPermissionShowEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static AuthPermissionShowEnum getByCode(int codeVal) {
        for (AuthPermissionShowEnum isDeletedFlagEnum : AuthPermissionShowEnum.values()) {
            if (isDeletedFlagEnum.code == codeVal) {
                return isDeletedFlagEnum;
            }
        }
        return null;
    }
}
